import Vue from 'vue'
import Vuex, { Store } from 'vuex'
import axios from 'axios'
// 挂载Vuex
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
     //存放的键值对就是所要管理的状态
     name:'这位可爱的游客'
  },
  mutations: {
    updateUserName (state, account) {
      state.name = account
    }
  },
  actions: {
  },
  modules: {
  }
})